<?php echo json_encode(array(
                   "success" =>  $success,
                   "code" =>  $code,
                   "message" =>  $message
       ));
?>